import yagmail

def send_email(file):
    en = yagmail.SMTP(user='zzh2834326498@qq.com',password='rbtbgahnvdwaddbf',host='smtp.qq.com',port='465')
    en.send(to='zzh2834326498@qq.com',subject='图书系统测试报告',contents='请查收',attachments=file)